package com.atguigu.mybatis021.excption;

import lombok.Data;

@Data
public class BusinEexction extends RuntimeException {

  private Integer count;
  private String message;
    public BusinEexction(Integer count ,String message) {
        this.count = count;
        this.message = message;
    }

    public BusinEexction(BusiEexctionEnum busiEexctionEnum) {
        this.count = busiEexctionEnum.getCode();
        this.message = busiEexctionEnum.getMessage();
    }

}
